<template>
  <el-card>
    <div class="box">
      <img :src="userStore.myUserInfo.avatar" alt="" class="avatar" />
      <div class="bottom">
        <h3 class="title">
          {{ RETURN_TIME_STR(GET_TIME().hours) }}好呀{{
            userStore.myUserInfo.name
          }}
        </h3>
        <p class="subtitle">硅谷甄选运营平台</p>
      </div>
    </div>
  </el-card>
  <div class="bottoms">
    <svg-icon icon="welcome" width="1000" height="600"></svg-icon>
  </div>
</template>

<script setup lang="ts">
import { GET_TIME, RETURN_TIME_STR } from '@/utils/time'
//引入用户相关的仓库,获取当前用户的头像、昵称
import useUserStore from '@/store/modules/userStore'
let userStore = useUserStore()
</script>

<style scoped lang="scss">
.box {
  display: flex;

  .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
  }

  .bottom {
    margin-left: 20px;

    .title {
      font-size: 30px;
      font-weight: 900;
      margin-bottom: 30px;
    }

    .subtitle {
      font-style: italic;
      color: skyblue;
    }
  }
}
.bottoms {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}
</style>
